
#include "Entity.h"

class CPlayer : public CEntity
{
    
public:
    
    CPlayer(String sName, Vector vPos, String sTextureName, RGBAColor rgbaColor=RGBAColor(1, 1, 1, 1));
    
    static void collidePlayers(CPlayer* player1, CPlayer* player2);
    
    void addToScore(int iVal)       { m_iScore += iVal; }
    void die();
    
private:
    
    enum CollisionResult {
        CR_BOUNCE,
        CR_PLAYER1_WINS,
        CR_PLAYER2_WINS,
        CR_BOTH_DIE,
        CR_BUMP
    };
    
    static void dealWithCollisionResult(CPlayer* player1, CPlayer* player2, CollisionResult iResult, Vector vPos, Vector vNormal);
    
    int m_iScore;
    char m_iPower;      //Built up power to use for power moves
    
};
